/**
 */
package org.mro.grib.model.files.secondEdition.products.meteorological;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Forecast Radar Imagery Products</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.mro.grib.model.files.secondEdition.products.meteorological.MeteorologicalPackage#getForecastRadarImageryProducts()
 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Product Discipline 0 \u2013 Meteorological products\r\nParameter category 16: forecast radar imagery' discipline='0' category='16'"
 * @generated
 */
public enum ForecastRadarImageryProducts implements Enumerator {
	/**
	 * The '<em><b>EQUIVALENT RADAR REFLECTIVITY FACTOR FOR RAIN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN_VALUE
	 * @generated
	 * @ordered
	 */
	EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN(0, "EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN", "EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN"), //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>MISSING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MISSING_VALUE
	 * @generated
	 * @ordered
	 */
	MISSING(255, "MISSING", "MISSING"); //$NON-NLS-1$ //$NON-NLS-2$

	/**
	 * The '<em><b>EQUIVALENT RADAR REFLECTIVITY FACTOR FOR RAIN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EQUIVALENT RADAR REFLECTIVITY FACTOR FOR RAIN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Equivalent radar reflectivity factor for rain' unit='mm6.m\u20133'"
	 * @generated
	 * @ordered
	 */
	public static final int EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN_VALUE = 0;

	/**
	 * The '<em><b>MISSING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MISSING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MISSING
	 * @model annotation="http://www.eclipse.org/emf/2002/GenModel description_en='Missing'"
	 * @generated
	 * @ordered
	 */
	public static final int MISSING_VALUE = 255;

	/**
	 * An array of all the '<em><b>Forecast Radar Imagery Products</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ForecastRadarImageryProducts[] VALUES_ARRAY =
		new ForecastRadarImageryProducts[] {
			EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN,
			MISSING,
		};

	/**
	 * A public read-only list of all the '<em><b>Forecast Radar Imagery Products</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ForecastRadarImageryProducts> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Forecast Radar Imagery Products</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ForecastRadarImageryProducts get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ForecastRadarImageryProducts result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Forecast Radar Imagery Products</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ForecastRadarImageryProducts getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ForecastRadarImageryProducts result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Forecast Radar Imagery Products</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ForecastRadarImageryProducts get(int value) {
		switch (value) {
			case EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN_VALUE: return EQUIVALENT_RADAR_REFLECTIVITY_FACTOR_FOR_RAIN;
			case MISSING_VALUE: return MISSING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ForecastRadarImageryProducts(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ForecastRadarImageryProducts
